{yun:}include file="$comstyle/header.htm"{/yun}
<div class="w1000">
<div class="admin_mainbody"> {yun:}include file="$comstyle/left.htm"{/yun}
  <div class=right_box>
    <div class=admincont_box>
      <div class="com_tit"><span class="com_tit_span">企业资料</span></div>
      <div class="job_list_tit">
        <ul class="">
          <li><a href="index.php?c=info">基本信息</a></li>
          <li><a href="index.php?c=map">企业地图</a></li>
          <li class="job_list_tit_cur"><a href="index.php?c=news">企业新闻</a></li>
          <li><a href="index.php?c=show">企业环境</a></li>
          <li><a href="index.php?c=product">企业产品</a></li>
          <li><a href="index.php?c=companyaddress">企业地址</a></li>
        </ul>
      </div>
      <div class="com_m_search">
        <input class="com_m_tj"  onclick="location.href='index.php?c=news&act=add'" type="button" value="+ 添加新闻">
        <form action="index.php" method="get">
          <div class="com_m_search_box">
            <input name="c" type="hidden" value="news">
            <input name="keyword" type="text" class="com_m_search_box_text" placeholder="请输入新闻关键字">
            <input name="" type="submit" class="com_m_search_box_bth" value=" ">
          </div>
        </form>
      </div>
      <div class="com_body">
        <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
        <form action="{yun:}$now_url{/yun}&act=del" method="post" target="supportiframe" id='myform'>
          <div id="job_checkbokid">
          <table class="com_table">
          {yun:}if $rows{/yun}
          <tr>
            <th width="20">&nbsp;</th>
            <th>新闻标题</th>
            <th>添加时间</th>
            <th>状态 </th>
            <th width="200">操作</th>
          </tr>
          {yun:}/if{/yun}
          {yun:}foreach item=v from=$rows{/yun}
          <tr>
            <td><input class="job_news_input" type=checkbox name="delid[]" value="{yun:}$v.id{/yun}" ></td>
            <td><a href="{yun:}url m=company c=newsshow id='`$uid`' nid='`$v.id`'{/yun}" target="_blank">{yun:}$v.title{/yun}</a></td>
            <td align="center">{yun:}$v.ctime|date_format:'%Y-%m-%d'{/yun} </td>
            <td align="center">{yun:}if $v.status=="0"{/yun}<span class="wate_verify">等待审核</span>{yun:}/if{/yun}
              {yun:}if $v.status=="1"{/yun} <span class="y_verify">已审核</span>{yun:}/if{/yun}
              {yun:}if $v.status=="2"{/yun} <span class="n_verify">未通过</span><span class="com_show_b_line">|</span><a class="job_news_reason" href="javascript:;" onclick="show_msg('{yun:}$v.id{/yun}')">原因</a>{yun:}/if{/yun} </td>
            <td><a href="{yun:}url m=company c=newsshow id=$uid nid=$v.id{/yun}" target="_blank" class=" com_bth cblue">预览</a> <a href="index.php?c=news&act=edit&id={yun:}$v.id{/yun}" class=" com_bth cblue">修改</a> <a href="javascript:void(0)" class=" com_bth cblue"onclick="layer_del('确定要删除该新闻？','index.php?c=news&act=del&id={yun:}$v.id{/yun}')">删除</a></td>
          </tr>
          {yun:}foreachelse{/yun}
          
          {yun:}if $smarty.get.keyword!=""{/yun}
          <tr>
            <td colspan="8" class="table_end"><div class="msg_no">没有搜索相关新闻。</div></td>
          </tr>
          {yun:}else{/yun}
          <tr>
            <td colspan="8" class="table_end"><div class="com_msg_no">
                <p>亲爱的用户，目前您还没有添加新闻信息</p>
                <p>添加新闻信息有利于宣传企业文化信息</p>
                <a href="index.php?c=news&act=add" class="com_msg_no_bth com_submit">点击添加</a> </div></td>
          </tr>
          {yun:}/if{/yun}
          
          {yun:}/foreach{/yun}  
          
          {yun:}if $rows{/yun}
          <tr>
            <td colspan="8" class="table_end"><div class="com_Release_job_bot"> <span class="com_Release_job_qx">
                <input id='checkAll'  type="checkbox" onclick='m_checkAll(this.form)'>
                全选</span>
                <input class='c_btn_02' type="button" name="subdel" value="批量删除" onclick="return really('delid[]');">
              </div>
              <div class="diggg">{yun:}$pagenav{/yun}</div></td>
          </tr>
          {yun:}/if{/yun}
        </form>
        </table>
        <div class="clear"></div>
      </div>
    </div>
  </div>
</div>
<script>
function show_msg(id){
	$.post("index.php?c=news&act=show",{id:id},function(data){
		if(data){
			data=eval('('+data+')');
			$("#msgs").html(data.statusbody);
			var layindex = $.layer({
				type : 1,
				title :'查看原因', 
				closeBtn : [0 , true],
				border : [10 , 0.3 , '#000', true],
				area : ['400px','200px'],
				page : {dom :"#showmsg"}
			});
			$("#layindex").val(layindex);
		}
	});
}
</script>
<div id="showmsg"  style="display:none; width: 400px;">
  <div>
    <div id="infobox">
      <div class="admin_Operating_sh" style="padding:10px; ">
        <div class="admin_Operating_sh_h1" style="padding:5px;">
          <div style="height:80px;overflow:auto;" id="msgs"></div>
        </div>
        <div class="admin_Operating_sub" style="margin-top:10px;"> &nbsp;&nbsp;
          <input type="button" id="zxxCancelBtn" onClick="layer.closeAll();" class="cancel_btn" value='确认'>
        </div>
      </div>
    </div>
  </div>
</div>
{yun:}include file="$comstyle/footer.htm"{/yun} 